/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sigeris;

import java.util.Vector;

/**
 *
 * @author lenin
 */
public class Node {
    private String name;
    private Vector<String> states;
    private Vector<Double> values;
    public Node(String n, Vector<String> s, Vector<Double> v){
        name=n;
        states=s;
        values=v;
    }
    public String getName(){
        return name;
    }
    public double getValue(String state){
        for(int i=0; i<states.size();i++)
            if(states.elementAt(i).equals(state))return getValue(i);
        return -1;
    }
    public double getValue(int index){
        return (double)(values.elementAt(index));
    }
}
